package com.cn.auth.serviceImpl.sys;


import java.util.List;
import javax.annotation.Resource;
import com.cn.auth.po.sys.AuthBranch;
import org.springframework.stereotype.Service;

import com.cn.auth.dao.sys.BranchDao;
import com.cn.auth.service.sys.BranchService;

/**
 * 部门Service实现类
 * @author Maochao-zhu
 *
 */
@Service("BranchServiceImpl")
public class BranchServiceImpl implements BranchService {
	
	@Resource
	BranchDao branchDao;
	
	@Override
	public Integer insertBranch(AuthBranch branch) {
		// TODO Auto-generated method stub
		return branchDao.insertBranch(branch);
	}

	@Override
	public Integer deleteBranchById(String[] ids) {
		// TODO Auto-generated method stub
		return branchDao.deleteBranchById(ids);
	}

	@Override
	public Integer updateBranchById(AuthBranch branch) {
		// TODO Auto-generated method stub
		return branchDao.updateBranchById(branch);
	}

	@Override
	public AuthBranch getBranchById(Integer id) {
		// TODO Auto-generated method stub
		return branchDao.getBranchById(id);
	}

	@Override
	public List<AuthBranch> getBranchList(AuthBranch branch) {
		// TODO Auto-generated method stub
		return branchDao.getBranchList(branch);
	}


	@Override
	public Integer getBranchListCount(AuthBranch branch) {
		// TODO Auto-generated method stub
		return branchDao.getBranchListCount(branch); 
	}


}
